
<?php
include_once 'CF_Table.php';
class CF_TableEdPage extends CF_Table{

	var $actionpage;		
	var $editpage;
	var $ordervar = 'order';
    var $edit_link_text = 'Edit';
    var $delete_link_text = 'Delete';
    var $edit_prefix;
	var $trigger_param = 'sel';

	
	function set_actionpage($pagename){
		$this->actionpage = $pagename;
	}	
	
	function set_editpage($pagename){
		$this->editpage = $pagename;
	}

	// Overrides and Extension mehods	
	function make_row_end($row_num){
		$endstring .= "</tr>\n";
		return $endstring;
	}

	function make_edit($value){
			return "<a href='$this->editpage?$this->trigger_param=$this->name&mode=Edit$this->keys_url_edit$this->referstring'>$this->edit_link_text</a>";
			
	}

	function make_delete($value){
			return "<a href='$this->actionpage?$this->trigger_param=$this->name&mode=Delete$this->keys_url_act$this->referstring'>$this->delete_link_text</a>";	
	}

	// mostly here just to save the code...
		function make_PopUpEdit($keyvalue){
			return("<a href=\"javascript:makePopUpEdit('customers_dedit.php','customerNumber=" . $keyvalue . "','dynamic' )\">Click Here</a>");
		}	
	
}

?>